import request from '@/utils/request'

const base = '/admin/hosp/hospitalSet'

export default{
  getHospSetList(current,limit,searchObj) {
    return request({
      url: `${base}/findPageHospSet/${current}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  removeHospSetById(id){
    return request({
      url:`${base}/removeById/${id}`,
      method:'delete'
    })
  },
  batchHospSet(idList){
    return request({
      url:`${base}/batchRemove`,
      method:'delete',
      data: idList
    })
  },
  lockHospSet(id,status){
    return request({
      url:`${base}/lockHospitalSet/${id}/${status}`,
      method:'put'
    })
  },
  saveHospSet(hospitalSet){
    return request({
      url:`${base}/saveHospitalSet`,
      method:'post',
      data: hospitalSet
    })
  },
  getHospSet(id){
    return request({
      url:`${base}/getHospSet/${id}`,
      method:'get'
    })
  },
  updateHospSet(hospitalSet){
    return request({
      url:`${base}/updateHospitalSet`,
      method:'post',
      data: hospitalSet
    })
  }
}


// export function  getHospSetList(current,limit,searchObj) {
//         return request({
//             url: `/admin/hosp/hospitalSet/findPageHospSet/${current}/${limit}`,
//             method: 'post',
//             data: searchObj
//           })
//   }
